package net.zjitc.rectangleArea;

/**
 * @Author admin
 * @Date 2019/3/13 9:20
 */
public class Rectangle {
    private int lg;
    private int we;

    public Rectangle(){}
    public Rectangle(int lg, int we) {
        this.lg = lg;
        this.we = we;
    }

    void getC(){
        System.out.println("周长是"+2*(lg+we));
    }

    int getS(){
        return we*lg;
    }

    public int getLg() {
        return lg;
    }

    public void setLg(int lg) {
        this.lg = lg;
    }

    public int getWe() {
        return we;
    }

    public void setWe(int we) {
        this.we = we;
    }
}
